package com.zhiyiang.service.hotel;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhiyiang.pojo.Hotel;

import java.util.List;

public interface HotelService {
    List<Hotel> findAll();

    Page<Hotel> getAllHotel(Integer current, Integer size);

    Page<Hotel> getHotel(String query, Integer current, Integer size);

    Hotel  getHotel(String hotelcode);

    Boolean addHotel(Hotel hotel);

    Boolean updateHotel(String hotelcode, Hotel hotel);

    Boolean deleteHotel(String hotelcode);

    List<Hotel> getHotels();
}
